package company

import (
	middleware2 "energy-amiot-platform/middleware"

	"github.com/gin-gonic/gin"
)

func Routers(r *gin.Engine) {
	// 企业管理，需要平台管理员权限
	group := r.Group("company", middleware2.AuthToken())
	group.POST("", create)
	group.GET("", pagingQuery)
	group.GET(":id", findByKey)
	group.DELETE(":id", deleteByID)
}
